<template>
	<view class="content">
		<text class="title">问题说明</text>
		<textarea class="input" placeholder="请输入您要反馈的内容" v-model="content" />
		<view class="nextBtn" @click="submit">
			提交
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			}
		},
		methods: {
			submit() {
				if (!this.content) {
					this.$u.toast('请输入您要反馈的内容');
					return;
				}
				this.$request.post(`user/user_feedback`, {
					content: this.content
				}).then(res => {
					this.$navto.navto('/packageB/feedback_result/feedback_result',{id:res.data.code})
				})
			}
		},
		computed: {},
		onLoad() {},
		onShow() {}
	}
</script>

<style lang="scss" scoped>
	.input {
		width: 610rpx;
		height: 540rpx;
		border-radius: 15rpx;
		margin-left: 40rpx;
		margin-top: 40rpx;
		background-color: #fff;
		padding: 30rpx;
	}

	.title {
		display: block;
		width: 100%;
		margin-top: 47rpx;
		margin-left: 40rpx;
		font-size: 28rpx;
	}

	.nextBtn {
		position: relative;
		width: 600rpx;
		height: 90rpx;
		line-height: 90rpx;
		text-align: center;
		color: #fff;
		border-radius: 45rpx;
		margin-left: 76rpx;
		margin-top: 100rpx;
		margin-bottom: 100rpx;
		background-color: #82b6c7;
	}

	.content {
		position: fixed;
		width: 100%;
		height: 100vh;
		background-color: #f9f9f9;
		overflow-y: scroll;
	}

	page {
		width: 100%;
		height: 100vh;
		background-color: #f9f9f9;
		overflow-y: scroll;
	}
</style>